<?php
/**
 * Created by PhpStorm.
 * User: steven
 * Date: 2017/11/12
 * Time: 下午9:26
 */

namespace app\api\validate;


use think\Validate;

class IDMustBePostiveInt extends BaseValidate {

    protected $rule = [
        'id'  => 'require|isPositiveInteger',
        #'num' => 'in:1,2,3'
    ];

    protected $message = [
        'id' => 'id必须是正整数'
    ];
}